package com.cms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cms.dao.mapper.UserRoleMapper;
import com.cms.exception.SystemDBException;
import com.cms.model.TrUserRole;
import com.cms.service.UserRoleService;

@Service
public class UserRoleServiceImpl implements UserRoleService {

	@Autowired
	private UserRoleMapper roleMapper;
	 
	
	@Override
	public void addUserRole(List<TrUserRole> roles) throws SystemDBException {
		roleMapper.addUserRole(roles);
	}

	@Override
	public void deleteUserRole(int userId) throws SystemDBException {
		roleMapper.deleteUserRole(userId);
	}

}
